/*
 * Copyright (C) 2017-2019 Dremio Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
 @import '../../styles/constants/index.scss';

.simpleMessage {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  padding: 5px;
  width: 100%;
  border-bottom: 1px solid $border-color;
  border-radius: 1px;
  user-select: text;
  position: relative;
  z-index: 100;

  &.--error {
    background-color: $cinderella;
  }

  &.--info {
    background-color: $iceberg;
  }

  &.--success {
    background-color: $frost;
  }

  &.--warning {
    background-color: $serenade;
  }

  &__icon {
    height: 24px;
    display: inline-block;
  }

  &__dismissIcon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  &__text {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 100px;
    padding: 5px 0px;
    margin: -5px 0px;
    font-size: $font-xs;
  }
}
